package com.panopset.sf;

import java.awt.Dimension;
import java.awt.Window;

import com.panopset.sf.env.Screener;

public class FrameDefaults {


    /**
     * Reset window to defaults.
     * @param w Window to reset.
     */
    public void reset(final Window w) {
        w.setSize(DFT_FRAME_DIM);
        w.setLocation(new Screener().centerInScreen(DFT_FRAME_DIM));
    }


    /**
     * 500 by 300 screen. Change this prior to launch to set a different default
     * screen size.
     */
    public static final Dimension DFT_FRAME_DIM = new Dimension(500, 300);

}
